﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcProject.Models.ContractInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	项目合同创建
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../javascript/dateselect.js" type="text/javascript"></script>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>项目合同信息</legend>
                        
            <div class="editor-label">
                合同名称
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ContractName) %>
                <%: Html.ValidationMessageFor(model => model.ContractName) %>
            </div>

            <div class="editor-label">
                合同开始时间
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ContractStartDate, new { @onclick = "popUpCalendar(this, this, 'yyyy-mm-dd');",@readonly="readonly" })%>
                <%: Html.ValidationMessageFor(model => model.ContractStartDate) %>
            </div>
            
            <div class="editor-label">
                合同结束时间
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ContractEndDate, new { @onclick = "popUpCalendar(this, this, 'yyyy-mm-dd');", @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.ContractEndDate) %>
            </div>
            
            <div class="editor-label">
                合同金额（单位：万元）
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ContractMoney) %>
                <%: Html.ValidationMessageFor(model => model.ContractMoney) %>
            </div>
            
            <div class="editor-label">
                合同备注
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.ContractNote) %>
                <%: Html.ValidationMessageFor(model => model.ContractNote) %>
            </div>
            
            
            <p>
                <input type="submit" value="创建合同" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

